<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;

class About extends Frontend
{
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = 'default';

    public function _initialize()
    {
        parent::_initialize();

        $banner = Db::name('banner')->where([
            'lanmu' => 'about'
        ])->select();
        $this->assign('banner', $banner);
    }

    //联系我们
    public function index(){
        return $this->view->fetch();
    }

    //加盟流程
    public function process()
    {
        $support = Db::name('support')->order('weigh asc,id asc')->select();
        $this->assign('support', $support);
        return $this->view->fetch();
    }

    //加盟支持
    public function support()
    {
        $support = Db::name('support')->order('weigh asc,id asc')->select();
        $this->assign('support', $support);
        return $this->view->fetch();
    }
}